﻿namespace ACCOUNTING
{
    using ACCOUNTING.LVY.Business;
    using ACCOUNTING.My.Resources;
    using C1.Win.C1FlexGrid;
    using C1.Win.C1FlexGrid.Util.BaseControls;
    using C1.Win.C1Input;
    using Microsoft.VisualBasic;
    using Microsoft.VisualBasic.CompilerServices;
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Diagnostics;
    using System.Drawing;
    using System.Runtime.CompilerServices;
    using System.Windows.Forms;

    [DesignerGenerated]
    public class Frm_Matching : Form
    {
        private static List<WeakReference> __ENCList = new List<WeakReference>();
        [AccessedThroughProperty("AdvDoiTuong")]
        private ADVObjects _AdvDoiTuong;
        [AccessedThroughProperty("AdvTaiKhoanNo")]
        private ADVAccount _AdvTaiKhoanNo;
        [AccessedThroughProperty("CboCanTruTu")]
        private ComboBox _CboCanTruTu;
        [AccessedThroughProperty("CboLoaiKhachHang")]
        private ComboBox _CboLoaiKhachHang;
        [AccessedThroughProperty("CmdAdd")]
        private ToolStripButton _CmdAdd;
        [AccessedThroughProperty("CmdDel")]
        private ToolStripButton _CmdDel;
        [AccessedThroughProperty("CmdEdit")]
        private ToolStripButton _CmdEdit;
        [AccessedThroughProperty("CmdExit")]
        private ToolStripButton _CmdExit;
        [AccessedThroughProperty("CmdFind")]
        private ToolStripButton _CmdFind;
        [AccessedThroughProperty("CmdHelp")]
        private ToolStripButton _CmdHelp;
        [AccessedThroughProperty("CmdPrint")]
        private ToolStripSplitButton _CmdPrint;
        [AccessedThroughProperty("CmdSave")]
        private ToolStripButton _CmdSave;
        [AccessedThroughProperty("CmdThemDongChiTiet")]
        private Button _CmdThemDongChiTiet;
        [AccessedThroughProperty("cmdTimDonHang")]
        private Button _cmdTimDonHang;
        [AccessedThroughProperty("CmdUnsave")]
        private ToolStripButton _CmdUnsave;
        [AccessedThroughProperty("CmdXemDinhKhoan")]
        private ToolStripButton _CmdXemDinhKhoan;
        [AccessedThroughProperty("CmdXoaDongChiTiet")]
        private Button _CmdXoaDongChiTiet;
        [AccessedThroughProperty("Label1")]
        private Label _Label1;
        [AccessedThroughProperty("Label10")]
        private Label _Label10;
        [AccessedThroughProperty("Label11")]
        private Label _Label11;
        [AccessedThroughProperty("Label12")]
        private Label _Label12;
        [AccessedThroughProperty("Label13")]
        private Label _Label13;
        [AccessedThroughProperty("Label14")]
        private Label _Label14;
        [AccessedThroughProperty("Label15")]
        private Label _Label15;
        [AccessedThroughProperty("Label16")]
        private Label _Label16;
        [AccessedThroughProperty("Label17")]
        private Label _Label17;
        [AccessedThroughProperty("Label18")]
        private Label _Label18;
        [AccessedThroughProperty("Label19")]
        private Label _Label19;
        [AccessedThroughProperty("Label2")]
        private Label _Label2;
        [AccessedThroughProperty("Label20")]
        private Label _Label20;
        [AccessedThroughProperty("Label21")]
        private Label _Label21;
        [AccessedThroughProperty("Label22")]
        private Label _Label22;
        [AccessedThroughProperty("Label23")]
        private Label _Label23;
        [AccessedThroughProperty("Label24")]
        private Label _Label24;
        [AccessedThroughProperty("Label25")]
        private Label _Label25;
        [AccessedThroughProperty("Label3")]
        private Label _Label3;
        [AccessedThroughProperty("Label4")]
        private Label _Label4;
        [AccessedThroughProperty("Label5")]
        private Label _Label5;
        [AccessedThroughProperty("Label6")]
        private Label _Label6;
        [AccessedThroughProperty("Label7")]
        private Label _Label7;
        [AccessedThroughProperty("Label8")]
        private Label _Label8;
        [AccessedThroughProperty("Label9")]
        private Label _Label9;
        [AccessedThroughProperty("Panel1")]
        private Panel _Panel1;
        [AccessedThroughProperty("Panel3")]
        private Panel _Panel3;
        [AccessedThroughProperty("Panel4")]
        private Panel _Panel4;
        [AccessedThroughProperty("PrintCT")]
        private ToolStripMenuItem _PrintCT;
        [AccessedThroughProperty("PrintTH")]
        private ToolStripMenuItem _PrintTH;
        [AccessedThroughProperty("TabControl1")]
        private TabControl _TabControl1;
        [AccessedThroughProperty("TabControl2")]
        private TabControl _TabControl2;
        [AccessedThroughProperty("TabPage1")]
        private TabPage _TabPage1;
        [AccessedThroughProperty("TabPage2")]
        private TabPage _TabPage2;
        [AccessedThroughProperty("ToolStrip1")]
        private ToolStrip _ToolStrip1;
        [AccessedThroughProperty("ToolStripButton1")]
        private ToolStripSeparator _ToolStripButton1;
        [AccessedThroughProperty("ToolStripSeparator1")]
        private ToolStripSeparator _ToolStripSeparator1;
        [AccessedThroughProperty("ToolStripSeparator2")]
        private ToolStripSeparator _ToolStripSeparator2;
        [AccessedThroughProperty("ToolStripSeparator3")]
        private ToolStripSeparator _ToolStripSeparator3;
        [AccessedThroughProperty("TxtChenhLechTyGia")]
        private C1NumericEdit _TxtChenhLechTyGia;
        [AccessedThroughProperty("TxtChungTuCanTru")]
        private TextBox _TxtChungTuCanTru;
        [AccessedThroughProperty("TxtCongTienCanTru")]
        private C1NumericEdit _TxtCongTienCanTru;
        [AccessedThroughProperty("TxtCongTienPhaiCanTru")]
        private C1NumericEdit _TxtCongTienPhaiCanTru;
        [AccessedThroughProperty("TxtDienGiaiKhac")]
        private TextBox _TxtDienGiaiKhac;
        [AccessedThroughProperty("TxtDienGiaiViet")]
        private TextBox _TxtDienGiaiViet;
        [AccessedThroughProperty("TxtGiaoDichConLai")]
        private C1NumericEdit _TxtGiaoDichConLai;
        [AccessedThroughProperty("TxtGiaoDichGhiSo")]
        private C1NumericEdit _TxtGiaoDichGhiSo;
        [AccessedThroughProperty("TxtKyHieu")]
        private TextBox _TxtKyHieu;
        [AccessedThroughProperty("TxtLoaiTien")]
        private TextBox _TxtLoaiTien;
        [AccessedThroughProperty("txtNgayCanTru")]
        private DateTimePicker _txtNgayCanTru;
        [AccessedThroughProperty("TxtNgayChungTu")]
        private DateTimePicker _TxtNgayChungTu;
        [AccessedThroughProperty("TxtNgayChungTuGoc")]
        private DateTimePicker _TxtNgayChungTuGoc;
        [AccessedThroughProperty("TxtSoChungTu")]
        private TextBox _TxtSoChungTu;
        [AccessedThroughProperty("TxtSoChungTuGoc")]
        private TextBox _TxtSoChungTuGoc;
        [AccessedThroughProperty("TxtSoDuTienGhiSo")]
        private C1NumericEdit _TxtSoDuTienGhiSo;
        [AccessedThroughProperty("TxtSoDuTienGiaoDich")]
        private C1NumericEdit _TxtSoDuTienGiaoDich;
        [AccessedThroughProperty("TxtSoTienConLai")]
        private C1NumericEdit _TxtSoTienConLai;
        [AccessedThroughProperty("TxtSoTienGhiSoConLai")]
        private C1NumericEdit _TxtSoTienGhiSoConLai;
        [AccessedThroughProperty("TxtTienGhiSo")]
        private C1NumericEdit _TxtTienGhiSo;
        [AccessedThroughProperty("TxtTienGiaoDich")]
        private C1NumericEdit _TxtTienGiaoDich;
        [AccessedThroughProperty("TxtTyGia")]
        private C1NumericEdit _TxtTyGia;
        [AccessedThroughProperty("VSlist")]
        private C1.Win.C1FlexGrid.C1FlexGrid _VSlist;
        private string cFrmFormat;
        public string cFrmKhoa;
        private string cFrmKhoaOld;
        private IContainer components;
        private bool mAllowAdd;
        private bool mAllowDel;
        private bool mAllowEdit;
        private bool mAllowView;
        private bool mEnabledControl;
        private string mKhoa;
        private string mLoaiChungTu;
        private clsDMDoiTuong objDoiTuong;
        private clsSoChungTu objSoChungTu;
        private clsDMTaiKhoan objSoTK;

        public Frm_Matching()
        {
            base.Load += new EventHandler(this.Frm_Matching_Load);
            List<WeakReference> list = __ENCList;
            lock (list)
            {
                __ENCList.Add(new WeakReference(this));
            }
            this.objSoChungTu = new clsSoChungTu();
            this.objSoTK = new clsDMTaiKhoan();
            this.objDoiTuong = new clsDMDoiTuong();
            this.mLoaiChungTu = "CTCN";
            this.cFrmKhoa = "";
            this.cFrmKhoaOld = "";
            this.cFrmFormat = "###,###,###,###,###,###,###,##0.00";
            this.InitializeComponent();
        }

        private void CmdAdd_Click(object sender, EventArgs e)
        {
            if (this.cFrmKhoa.Trim() != "")
            {
                this.cFrmKhoaOld = this.cFrmKhoa;
            }
            this.EmptyData();
            this.cFrmKhoa = modGeneral.CreatKey("GL_CanTru", 15, "CT");
            this.objSoChungTu.Load(this.mLoaiChungTu);
            this.TxtSoChungTu.Text = this.objSoChungTu.CreateVoucher(LVYModule.sLeft(LVYModule.Date2Char(this.TxtNgayChungTu.Text), 6), 1);
            this.EnabledControl = true;
            this.TxtSoChungTu.Focus();
        }

        private void CmdExit_Click(object sender, EventArgs e)
        {
            this.Dispose();
        }

        private void CmdFind_Click(object sender, EventArgs e)
        {
        }

        private void CmdThemDongChiTiet_Click(object sender, EventArgs e)
        {
            this.VSlist.AddItem("");
        }

        private void cmdTimDonHang_Click(object sender, EventArgs e)
        {
            if (Microsoft.VisualBasic.CompilerServices.Operators.ConditionalCompareObjectEqual(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.CboCanTruTu.SelectedValue), "", modGeneral.TypeOfValue.Nothing), "A/P", false))
            {
                clsGhiNhatKyChungTu chungtu = new clsGhiNhatKyChungTu();
                if (Microsoft.VisualBasic.CompilerServices.Operators.ConditionalCompareObjectEqual(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.CboLoaiKhachHang.SelectedValue), "", modGeneral.TypeOfValue.Nothing), "TN", false))
                {
                    this.mKhoa = SearchModule.SearchChungTuMuaHang(true);
                    if (this.mKhoa == null)
                    {
                        return;
                    }
                    try
                    {
                        this.TxtKyHieu.Text = this.mKhoa.Substring(2, 2);
                    }
                    catch (Exception exception1)
                    {
                        ProjectData.SetProjectError(exception1);
                        Exception exception = exception1;
                        this.TxtKyHieu.Text = "";
                        ProjectData.ClearProjectError();
                    }
                    this.objSoTK.LoadByCode("3310");
                    this.AdvTaiKhoanNo.Value = this.objSoTK.Khoa;
                    chungtu.Load(this.mKhoa);
                    this.LoadData_ChungTuMuaHang(chungtu);
                }
                if (Microsoft.VisualBasic.CompilerServices.Operators.ConditionalCompareObjectEqual(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.CboLoaiKhachHang.SelectedValue), "", modGeneral.TypeOfValue.Nothing), "NN", false))
                {
                    this.mKhoa = SearchModule.SearchChungTuMuaHang(false);
                    if (this.mKhoa != null)
                    {
                        try
                        {
                            this.TxtKyHieu.Text = this.mKhoa.Substring(2, 2);
                        }
                        catch (Exception exception7)
                        {
                            ProjectData.SetProjectError(exception7);
                            Exception exception2 = exception7;
                            this.TxtKyHieu.Text = "";
                            ProjectData.ClearProjectError();
                        }
                        this.objSoTK.LoadByCode("3311");
                        this.AdvTaiKhoanNo.Value = this.objSoTK.Khoa;
                        chungtu.Load(this.mKhoa);
                        this.LoadData_ChungTuMuaHang(chungtu);
                    }
                }
            }
            else if (Microsoft.VisualBasic.CompilerServices.Operators.ConditionalCompareObjectEqual(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.CboCanTruTu.SelectedValue), "", modGeneral.TypeOfValue.Nothing), "A/R(-)", false))
            {
                clsChungTuQuyChiTiet tiet = new clsChungTuQuyChiTiet();
                if (Microsoft.VisualBasic.CompilerServices.Operators.ConditionalCompareObjectEqual(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.CboLoaiKhachHang.SelectedValue), "", modGeneral.TypeOfValue.Nothing), "TN", false))
                {
                    this.mKhoa = SearchModule.SearchPhieuThuTienThua(true);
                    if (this.mKhoa == null)
                    {
                        return;
                    }
                    try
                    {
                        this.TxtKyHieu.Text = this.mKhoa.Substring(2, 2);
                    }
                    catch (Exception exception8)
                    {
                        ProjectData.SetProjectError(exception8);
                        Exception exception3 = exception8;
                        this.TxtKyHieu.Text = "";
                        ProjectData.ClearProjectError();
                    }
                    this.objSoTK.LoadByCode("1310");
                    this.AdvTaiKhoanNo.Value = this.objSoTK.Khoa;
                    tiet.Load(this.mKhoa);
                    this.LoadData_ChungTuTienThua(tiet);
                }
                if (Microsoft.VisualBasic.CompilerServices.Operators.ConditionalCompareObjectEqual(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.CboLoaiKhachHang.SelectedValue), "", modGeneral.TypeOfValue.Nothing), "NN", false))
                {
                    this.mKhoa = SearchModule.SearchPhieuThuTienThua(false);
                    if (this.mKhoa != null)
                    {
                        try
                        {
                            this.TxtKyHieu.Text = this.mKhoa.Substring(2, 2);
                        }
                        catch (Exception exception9)
                        {
                            ProjectData.SetProjectError(exception9);
                            Exception exception4 = exception9;
                            this.TxtKyHieu.Text = "";
                            ProjectData.ClearProjectError();
                        }
                        this.objSoTK.LoadByCode("1311");
                        this.AdvTaiKhoanNo.Value = this.objSoTK.Khoa;
                        tiet.Load(this.mKhoa);
                        this.LoadData_ChungTuTienThua(tiet);
                    }
                }
            }
            else if (Microsoft.VisualBasic.CompilerServices.Operators.ConditionalCompareObjectEqual(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.CboCanTruTu.SelectedValue), "", modGeneral.TypeOfValue.Nothing), "AC", false))
            {
                clsTamUngKhachHangChiTiet tiet2 = new clsTamUngKhachHangChiTiet();
                if (Microsoft.VisualBasic.CompilerServices.Operators.ConditionalCompareObjectEqual(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.CboLoaiKhachHang.SelectedValue), "", modGeneral.TypeOfValue.Nothing), "TN", false))
                {
                    this.mKhoa = SearchModule.SearchDanhSachKhachHangTamUng(true);
                    if (this.mKhoa == null)
                    {
                        return;
                    }
                    try
                    {
                        this.TxtKyHieu.Text = this.mKhoa.Substring(2, 2);
                    }
                    catch (Exception exception10)
                    {
                        ProjectData.SetProjectError(exception10);
                        Exception exception5 = exception10;
                        this.TxtKyHieu.Text = "";
                        ProjectData.ClearProjectError();
                    }
                    this.objSoTK.LoadByCode("1310");
                    this.AdvTaiKhoanNo.Value = this.objSoTK.Khoa;
                    tiet2.Load(this.mKhoa);
                    this.LoadData_KhachHangTamUng(tiet2);
                }
                if (Microsoft.VisualBasic.CompilerServices.Operators.ConditionalCompareObjectEqual(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.CboLoaiKhachHang.SelectedValue), "", modGeneral.TypeOfValue.Nothing), "NN", false))
                {
                    this.mKhoa = SearchModule.SearchDanhSachKhachHangTamUng(false);
                    if (this.mKhoa != null)
                    {
                        try
                        {
                            this.TxtKyHieu.Text = this.mKhoa.Substring(2, 2);
                        }
                        catch (Exception exception11)
                        {
                            ProjectData.SetProjectError(exception11);
                            Exception exception6 = exception11;
                            this.TxtKyHieu.Text = "";
                            ProjectData.ClearProjectError();
                        }
                        this.objSoTK.LoadByCode("1311");
                        this.AdvTaiKhoanNo.Value = this.objSoTK.Khoa;
                        tiet2.Load(this.mKhoa);
                        this.LoadData_KhachHangTamUng(tiet2);
                    }
                }
            }
        }

        private void CmdUnsave_Click(object sender, EventArgs e)
        {
            if (this.cFrmKhoaOld.Trim() != "")
            {
                this.cFrmKhoa = this.cFrmKhoaOld;
            }
            else
            {
                this.EmptyData();
            }
            this.EnabledControl = false;
        }

        private void CmdXoaDongChiTiet_Click(object sender, EventArgs e)
        {
            if ((this.VSlist.Rows.Count != 2) && (this.VSlist.Row > 0))
            {
                this.VSlist.RemoveItem(this.VSlist.Row);
            }
        }

        [DebuggerNonUserCode]
        protected override void Dispose(bool disposing)
        {
            try
            {
                if (disposing && (this.components != null))
                {
                    this.components.Dispose();
                }
            }
            finally
            {
                base.Dispose(disposing);
            }
        }

        public void EmptyData()
        {
            this.TxtSoChungTu.Text = "";
            this.TxtNgayChungTu.Text = Strings.Format(DateAndTime.Today, "dd/MM/yyyy");
            this.CboCanTruTu.SelectedValue = "";
            this.CboLoaiKhachHang.SelectedValue = "";
            this.TxtSoChungTuGoc.Text = "";
            this.TxtNgayChungTuGoc.Text = Strings.Format(DateAndTime.Today, "dd/MM/yyyy");
            this.TxtTienGhiSo.Value = null;
            this.TxtTienGiaoDich.Value = null;
            this.TxtDienGiaiViet.Text = "";
            this.TxtDienGiaiKhac.Text = "";
            this.AdvTaiKhoanNo.Value = "";
            this.TxtChungTuCanTru.Text = "";
            this.txtNgayCanTru.Text = Strings.Format(DateAndTime.Today, "dd/MM/yyyy");
            this.AdvDoiTuong.Value = "";
            this.TxtLoaiTien.Text = "";
            this.TxtTyGia.Value = null;
            this.TxtGiaoDichConLai.Value = null;
            this.TxtGiaoDichGhiSo.Value = null;
            this.VSlist.Rows.Count = 2;
        }

        public void FormatNumber()
        {
            LVYModule.advFormatNumber(this.TxtTienGiaoDich, this.cFrmFormat);
            LVYModule.advFormatNumber(this.TxtTienGhiSo, this.cFrmFormat);
            LVYModule.advFormatNumber(this.TxtGiaoDichConLai, this.cFrmFormat);
            LVYModule.advFormatNumber(this.TxtGiaoDichGhiSo, this.cFrmFormat);
            LVYModule.advFormatNumber(this.TxtTyGia, this.cFrmFormat);
            LVYModule.advFormatNumber(this.TxtCongTienPhaiCanTru, this.cFrmFormat);
            LVYModule.advFormatNumber(this.TxtCongTienCanTru, this.cFrmFormat);
            LVYModule.advFormatNumber(this.TxtSoTienConLai, this.cFrmFormat);
            LVYModule.advFormatNumber(this.TxtChenhLechTyGia, this.cFrmFormat);
            LVYModule.advFormatNumber(this.TxtSoTienGhiSoConLai, this.cFrmFormat);
            LVYModule.advFormatNumber(this.TxtSoDuTienGiaoDich, this.cFrmFormat);
            LVYModule.advFormatNumber(this.TxtSoDuTienGhiSo, this.cFrmFormat);
        }

        private void Frm_Matching_Load(object sender, EventArgs e)
        {
            this.EnabledControl = false;
            this.LoadCombobox(this.CboCanTruTu, this.LoaiChungTuCanTru(), "Ten", "Loai");
            this.LoadCombobox(this.CboLoaiKhachHang, this.LoaiKhachHang(), "Ten", "Loai");
            this.FormatNumber();
            this.MergCell();
            if (this.cFrmKhoa.Trim() != "")
            {
            }
        }

        [DebuggerStepThrough]
        private void InitializeComponent()
        {
            ComponentResourceManager manager = new ComponentResourceManager(typeof(Frm_Matching));
            this.ToolStrip1 = new ToolStrip();
            this.CmdAdd = new ToolStripButton();
            this.CmdEdit = new ToolStripButton();
            this.ToolStripSeparator2 = new ToolStripSeparator();
            this.CmdSave = new ToolStripButton();
            this.CmdUnsave = new ToolStripButton();
            this.ToolStripSeparator1 = new ToolStripSeparator();
            this.CmdFind = new ToolStripButton();
            this.CmdPrint = new ToolStripSplitButton();
            this.PrintTH = new ToolStripMenuItem();
            this.PrintCT = new ToolStripMenuItem();
            this.ToolStripButton1 = new ToolStripSeparator();
            this.CmdDel = new ToolStripButton();
            this.ToolStripSeparator3 = new ToolStripSeparator();
            this.CmdExit = new ToolStripButton();
            this.CmdHelp = new ToolStripButton();
            this.CmdXemDinhKhoan = new ToolStripButton();
            this.TabControl1 = new TabControl();
            this.TabPage1 = new TabPage();
            this.TxtKyHieu = new TextBox();
            this.AdvDoiTuong = new ADVObjects();
            this.TxtDienGiaiKhac = new TextBox();
            this.Label9 = new Label();
            this.cmdTimDonHang = new Button();
            this.Label6 = new Label();
            this.Label4 = new Label();
            this.txtNgayCanTru = new DateTimePicker();
            this.TxtNgayChungTuGoc = new DateTimePicker();
            this.Label14 = new Label();
            this.TxtSoChungTuGoc = new TextBox();
            this.CboLoaiKhachHang = new ComboBox();
            this.Label3 = new Label();
            this.CboCanTruTu = new ComboBox();
            this.TxtDienGiaiViet = new TextBox();
            this.Label5 = new Label();
            this.Label12 = new Label();
            this.TxtGiaoDichConLai = new C1NumericEdit();
            this.TxtGiaoDichGhiSo = new C1NumericEdit();
            this.TxtTyGia = new C1NumericEdit();
            this.Label18 = new Label();
            this.TxtTienGiaoDich = new C1NumericEdit();
            this.Label16 = new Label();
            this.Label17 = new Label();
            this.TxtTienGhiSo = new C1NumericEdit();
            this.Label15 = new Label();
            this.Label8 = new Label();
            this.Label7 = new Label();
            this.Label11 = new Label();
            this.Label10 = new Label();
            this.Label2 = new Label();
            this.AdvTaiKhoanNo = new ADVAccount();
            this.Label13 = new Label();
            this.TxtNgayChungTu = new DateTimePicker();
            this.Label1 = new Label();
            this.TxtChungTuCanTru = new TextBox();
            this.TxtLoaiTien = new TextBox();
            this.TxtSoChungTu = new TextBox();
            this.Panel1 = new Panel();
            this.TxtSoTienGhiSoConLai = new C1NumericEdit();
            this.TxtCongTienPhaiCanTru = new C1NumericEdit();
            this.TxtSoDuTienGiaoDich = new C1NumericEdit();
            this.TxtSoDuTienGhiSo = new C1NumericEdit();
            this.TxtCongTienCanTru = new C1NumericEdit();
            this.TxtSoTienConLai = new C1NumericEdit();
            this.TxtChenhLechTyGia = new C1NumericEdit();
            this.Label19 = new Label();
            this.Label20 = new Label();
            this.Label21 = new Label();
            this.Label22 = new Label();
            this.Label23 = new Label();
            this.Label24 = new Label();
            this.Label25 = new Label();
            this.TabPage2 = new TabPage();
            this.Panel4 = new Panel();
            this.VSlist = new C1.Win.C1FlexGrid.C1FlexGrid();
            this.Panel3 = new Panel();
            this.CmdXoaDongChiTiet = new Button();
            this.CmdThemDongChiTiet = new Button();
            this.TabControl2 = new TabControl();
            this.ToolStrip1.SuspendLayout();
            this.TabControl1.SuspendLayout();
            this.TabPage1.SuspendLayout();
            ((ISupportInitialize) this.TxtGiaoDichConLai).BeginInit();
            ((ISupportInitialize) this.TxtGiaoDichGhiSo).BeginInit();
            ((ISupportInitialize) this.TxtTyGia).BeginInit();
            ((ISupportInitialize) this.TxtTienGiaoDich).BeginInit();
            ((ISupportInitialize) this.TxtTienGhiSo).BeginInit();
            this.Panel1.SuspendLayout();
            ((ISupportInitialize) this.TxtSoTienGhiSoConLai).BeginInit();
            ((ISupportInitialize) this.TxtCongTienPhaiCanTru).BeginInit();
            ((ISupportInitialize) this.TxtSoDuTienGiaoDich).BeginInit();
            ((ISupportInitialize) this.TxtSoDuTienGhiSo).BeginInit();
            ((ISupportInitialize) this.TxtCongTienCanTru).BeginInit();
            ((ISupportInitialize) this.TxtSoTienConLai).BeginInit();
            ((ISupportInitialize) this.TxtChenhLechTyGia).BeginInit();
            this.TabPage2.SuspendLayout();
            this.Panel4.SuspendLayout();
            this.VSlist.BeginInit();
            this.Panel3.SuspendLayout();
            this.TabControl2.SuspendLayout();
            this.SuspendLayout();
            this.ToolStrip1.BackgroundImage = ACCOUNTING.My.Resources.Resources.bgbluenoborder;
            this.ToolStrip1.Items.AddRange(new ToolStripItem[] { this.CmdAdd, this.CmdEdit, this.ToolStripSeparator2, this.CmdSave, this.CmdUnsave, this.ToolStripSeparator1, this.CmdFind, this.CmdPrint, this.ToolStripButton1, this.CmdDel, this.ToolStripSeparator3, this.CmdExit, this.CmdHelp, this.CmdXemDinhKhoan });
            Point point = new Point(0, 0);
            this.ToolStrip1.Location = point;
            this.ToolStrip1.Name = "ToolStrip1";
            Size size = new Size(0x37c, 0x19);
            this.ToolStrip1.Size = size;
            this.ToolStrip1.TabIndex = 1;
            this.ToolStrip1.Text = "ToolStrip1";
            this.CmdAdd.Image = (Image) manager.GetObject("CmdAdd.Image");
            this.CmdAdd.ImageTransparentColor = Color.White;
            this.CmdAdd.Name = "CmdAdd";
            size = new Size(0x52, 0x16);
            this.CmdAdd.Size = size;
            this.CmdAdd.Text = "&Th\x00eam mới";
            this.CmdEdit.Image = (Image) manager.GetObject("CmdEdit.Image");
            this.CmdEdit.ImageTransparentColor = Color.White;
            this.CmdEdit.Name = "CmdEdit";
            size = new Size(0x2e, 0x16);
            this.CmdEdit.Size = size;
            this.CmdEdit.Text = "&Sửa";
            this.ToolStripSeparator2.Name = "ToolStripSeparator2";
            size = new Size(6, 0x19);
            this.ToolStripSeparator2.Size = size;
            this.CmdSave.Image = (Image) manager.GetObject("CmdSave.Image");
            this.CmdSave.ImageTransparentColor = Color.WhiteSmoke;
            this.CmdSave.Name = "CmdSave";
            size = new Size(0x2f, 0x16);
            this.CmdSave.Size = size;
            this.CmdSave.Text = "&Lưu";
            this.CmdUnsave.Image = (Image) manager.GetObject("CmdUnsave.Image");
            this.CmdUnsave.ImageTransparentColor = Color.White;
            this.CmdUnsave.Name = "CmdUnsave";
            size = new Size(0x39, 0x16);
            this.CmdUnsave.Size = size;
            this.CmdUnsave.Text = "&K.Lưu";
            this.ToolStripSeparator1.Name = "ToolStripSeparator1";
            size = new Size(6, 0x19);
            this.ToolStripSeparator1.Size = size;
            this.CmdFind.Image = (Image) manager.GetObject("CmdFind.Image");
            this.CmdFind.ImageTransparentColor = Color.White;
            this.CmdFind.Name = "CmdFind";
            size = new Size(0x4d, 0x16);
            this.CmdFind.Size = size;
            this.CmdFind.Text = "T\x00ecm kiếm";
            this.CmdPrint.DropDownItems.AddRange(new ToolStripItem[] { this.PrintTH, this.PrintCT });
            this.CmdPrint.Image = (Image) manager.GetObject("CmdPrint.Image");
            this.CmdPrint.ImageTransparentColor = Color.White;
            this.CmdPrint.Name = "CmdPrint";
            size = new Size(0x31, 0x16);
            this.CmdPrint.Size = size;
            this.CmdPrint.Text = "&In";
            this.PrintTH.Name = "PrintTH";
            size = new Size(0x98, 0x16);
            this.PrintTH.Size = size;
            this.PrintTH.Text = "Tổng hợp";
            this.PrintCT.Name = "PrintCT";
            size = new Size(0x98, 0x16);
            this.PrintCT.Size = size;
            this.PrintCT.Text = "Chi tiết";
            this.ToolStripButton1.Name = "ToolStripButton1";
            size = new Size(6, 0x19);
            this.ToolStripButton1.Size = size;
            this.CmdDel.Image = (Image) manager.GetObject("CmdDel.Image");
            this.CmdDel.ImageTransparentColor = Color.White;
            this.CmdDel.Name = "CmdDel";
            size = new Size(0x2f, 0x16);
            this.CmdDel.Size = size;
            this.CmdDel.Text = "&X\x00f3a";
            this.ToolStripSeparator3.Name = "ToolStripSeparator3";
            size = new Size(6, 0x19);
            this.ToolStripSeparator3.Size = size;
            this.CmdExit.Alignment = ToolStripItemAlignment.Right;
            this.CmdExit.Image = (Image) manager.GetObject("CmdExit.Image");
            this.CmdExit.ImageTransparentColor = Color.White;
            this.CmdExit.Name = "CmdExit";
            size = new Size(0x3a, 0x16);
            this.CmdExit.Size = size;
            this.CmdExit.Text = "Th&o\x00e1t";
            this.CmdHelp.Alignment = ToolStripItemAlignment.Right;
            this.CmdHelp.Image = (Image) manager.GetObject("CmdHelp.Image");
            this.CmdHelp.ImageTransparentColor = Color.Magenta;
            this.CmdHelp.Name = "CmdHelp";
            size = new Size(0x34, 0x16);
            this.CmdHelp.Size = size;
            this.CmdHelp.Text = "&Help";
            this.CmdXemDinhKhoan.Image = ACCOUNTING.My.Resources.Resources.view;
            this.CmdXemDinhKhoan.ImageTransparentColor = Color.Magenta;
            this.CmdXemDinhKhoan.Name = "CmdXemDinhKhoan";
            size = new Size(0x72, 0x16);
            this.CmdXemDinhKhoan.Size = size;
            this.CmdXemDinhKhoan.Text = "Xem định khoản";
            this.TabControl1.Controls.Add(this.TabPage1);
            this.TabControl1.Dock = DockStyle.Top;
            point = new Point(0, 0x19);
            this.TabControl1.Location = point;
            this.TabControl1.Name = "TabControl1";
            this.TabControl1.SelectedIndex = 0;
            size = new Size(0x37c, 200);
            this.TabControl1.Size = size;
            this.TabControl1.TabIndex = 2;
            this.TabPage1.Controls.Add(this.TxtKyHieu);
            this.TabPage1.Controls.Add(this.AdvDoiTuong);
            this.TabPage1.Controls.Add(this.TxtDienGiaiKhac);
            this.TabPage1.Controls.Add(this.Label9);
            this.TabPage1.Controls.Add(this.cmdTimDonHang);
            this.TabPage1.Controls.Add(this.Label6);
            this.TabPage1.Controls.Add(this.Label4);
            this.TabPage1.Controls.Add(this.txtNgayCanTru);
            this.TabPage1.Controls.Add(this.TxtNgayChungTuGoc);
            this.TabPage1.Controls.Add(this.Label14);
            this.TabPage1.Controls.Add(this.TxtSoChungTuGoc);
            this.TabPage1.Controls.Add(this.CboLoaiKhachHang);
            this.TabPage1.Controls.Add(this.Label3);
            this.TabPage1.Controls.Add(this.CboCanTruTu);
            this.TabPage1.Controls.Add(this.TxtDienGiaiViet);
            this.TabPage1.Controls.Add(this.Label5);
            this.TabPage1.Controls.Add(this.Label12);
            this.TabPage1.Controls.Add(this.TxtGiaoDichConLai);
            this.TabPage1.Controls.Add(this.TxtGiaoDichGhiSo);
            this.TabPage1.Controls.Add(this.TxtTyGia);
            this.TabPage1.Controls.Add(this.Label18);
            this.TabPage1.Controls.Add(this.TxtTienGiaoDich);
            this.TabPage1.Controls.Add(this.Label16);
            this.TabPage1.Controls.Add(this.Label17);
            this.TabPage1.Controls.Add(this.TxtTienGhiSo);
            this.TabPage1.Controls.Add(this.Label15);
            this.TabPage1.Controls.Add(this.Label8);
            this.TabPage1.Controls.Add(this.Label7);
            this.TabPage1.Controls.Add(this.Label11);
            this.TabPage1.Controls.Add(this.Label10);
            this.TabPage1.Controls.Add(this.Label2);
            this.TabPage1.Controls.Add(this.AdvTaiKhoanNo);
            this.TabPage1.Controls.Add(this.Label13);
            this.TabPage1.Controls.Add(this.TxtNgayChungTu);
            this.TabPage1.Controls.Add(this.Label1);
            this.TabPage1.Controls.Add(this.TxtChungTuCanTru);
            this.TabPage1.Controls.Add(this.TxtLoaiTien);
            this.TabPage1.Controls.Add(this.TxtSoChungTu);
            this.TabPage1.ImageIndex = 1;
            point = new Point(4, 0x16);
            this.TabPage1.Location = point;
            this.TabPage1.Name = "TabPage1";
            Padding padding = new Padding(3);
            this.TabPage1.Padding = padding;
            size = new Size(0x374, 0xae);
            this.TabPage1.Size = size;
            this.TabPage1.TabIndex = 0;
            this.TabPage1.Text = "Th\x00f4ng tin cấn trừ";
            this.TabPage1.UseVisualStyleBackColor = true;
            point = new Point(0x351, 12);
            this.TxtKyHieu.Location = point;
            this.TxtKyHieu.Name = "TxtKyHieu";
            size = new Size(0x1d, 20);
            this.TxtKyHieu.Size = size;
            this.TxtKyHieu.TabIndex = 0x88;
            this.TxtKyHieu.Visible = false;
            this.AdvDoiTuong.Conditions = "";
            this.AdvDoiTuong.LoaiDoiTuong = modGeneral.TypeObjects.TatCa;
            point = new Point(0x214, 0x3f);
            this.AdvDoiTuong.Location = point;
            this.AdvDoiTuong.Name = "AdvDoiTuong";
            this.AdvDoiTuong.ReadOnly = false;
            size = new Size(0x13a, 20);
            this.AdvDoiTuong.Size = size;
            this.AdvDoiTuong.TabIndex = 7;
            this.AdvDoiTuong.UpperText = true;
            this.AdvDoiTuong.Value = "";
            this.AdvDoiTuong.WidthCode = 80;
            point = new Point(0x214, 0x90);
            this.TxtDienGiaiKhac.Location = point;
            this.TxtDienGiaiKhac.Name = "TxtDienGiaiKhac";
            size = new Size(0x13a, 20);
            this.TxtDienGiaiKhac.Size = size;
            this.TxtDienGiaiKhac.TabIndex = 0x11;
            this.Label9.AutoEllipsis = true;
            this.Label9.AutoSize = true;
            point = new Point(0x1b9, 0x94);
            this.Label9.Location = point;
            this.Label9.Name = "Label9";
            this.Label9.RightToLeft = RightToLeft.No;
            size = new Size(0x4b, 13);
            this.Label9.Size = size;
            this.Label9.TabIndex = 0x87;
            this.Label9.Text = "Diễn giải kh\x00e1c";
            this.Label9.TextAlign = ContentAlignment.TopRight;
            this.cmdTimDonHang.BackgroundImage = ACCOUNTING.My.Resources.Resources.view;
            this.cmdTimDonHang.BackgroundImageLayout = ImageLayout.Stretch;
            point = new Point(0x281, 0x22);
            this.cmdTimDonHang.Location = point;
            padding = new Padding(0);
            this.cmdTimDonHang.Margin = padding;
            this.cmdTimDonHang.Name = "cmdTimDonHang";
            size = new Size(0x17, 0x16);
            this.cmdTimDonHang.Size = size;
            this.cmdTimDonHang.TabIndex = 0x85;
            this.cmdTimDonHang.UseVisualStyleBackColor = true;
            this.Label6.AutoSize = true;
            point = new Point(0x2a1, 0x26);
            this.Label6.Location = point;
            this.Label6.Name = "Label6";
            size = new Size(0x44, 13);
            this.Label6.Size = size;
            this.Label6.TabIndex = 0x66;
            this.Label6.Text = "Ng\x00e0y cấn trừ";
            this.Label4.AutoSize = true;
            point = new Point(0xe7, 0x5e);
            this.Label4.Location = point;
            this.Label4.Name = "Label4";
            size = new Size(0x20, 13);
            this.Label4.Size = size;
            this.Label4.TabIndex = 0x66;
            this.Label4.Text = "Ng\x00e0y";
            this.txtNgayCanTru.Format = DateTimePickerFormat.Short;
            point = new Point(0x2e9, 0x23);
            this.txtNgayCanTru.Location = point;
            this.txtNgayCanTru.Name = "txtNgayCanTru";
            size = new Size(0x65, 20);
            this.txtNgayCanTru.Size = size;
            this.txtNgayCanTru.TabIndex = 6;
            this.TxtNgayChungTuGoc.Format = DateTimePickerFormat.Short;
            point = new Point(0x117, 0x5b);
            this.TxtNgayChungTuGoc.Location = point;
            this.TxtNgayChungTuGoc.Name = "TxtNgayChungTuGoc";
            size = new Size(0x65, 20);
            this.TxtNgayChungTuGoc.Size = size;
            this.TxtNgayChungTuGoc.TabIndex = 9;
            this.Label14.AutoSize = true;
            point = new Point(0x12, 0x5d);
            this.Label14.Location = point;
            this.Label14.Name = "Label14";
            size = new Size(0x47, 13);
            this.Label14.Size = size;
            this.Label14.TabIndex = 0x65;
            this.Label14.Text = "Chứng từ gốc";
            this.TxtSoChungTuGoc.CharacterCasing = CharacterCasing.Upper;
            point = new Point(0x6d, 0x5b);
            this.TxtSoChungTuGoc.Location = point;
            this.TxtSoChungTuGoc.Name = "TxtSoChungTuGoc";
            size = new Size(0x74, 20);
            this.TxtSoChungTuGoc.Size = size;
            this.TxtSoChungTuGoc.TabIndex = 8;
            this.CboLoaiKhachHang.DropDownStyle = ComboBoxStyle.DropDownList;
            this.CboLoaiKhachHang.FormattingEnabled = true;
            point = new Point(0x6d, 0x40);
            this.CboLoaiKhachHang.Location = point;
            this.CboLoaiKhachHang.Name = "CboLoaiKhachHang";
            size = new Size(0x10f, 0x15);
            this.CboLoaiKhachHang.Size = size;
            this.CboLoaiKhachHang.TabIndex = 3;
            this.Label3.AutoEllipsis = true;
            this.Label3.AutoSize = true;
            point = new Point(0x12, 0x43);
            this.Label3.Location = point;
            this.Label3.Name = "Label3";
            this.Label3.RightToLeft = RightToLeft.No;
            size = new Size(0x57, 13);
            this.Label3.Size = size;
            this.Label3.TabIndex = 0x61;
            this.Label3.Text = "Loại kh\x00e1ch h\x00e0ng";
            this.Label3.TextAlign = ContentAlignment.TopRight;
            this.CboCanTruTu.DropDownStyle = ComboBoxStyle.DropDownList;
            this.CboCanTruTu.FormattingEnabled = true;
            point = new Point(0x6d, 0x25);
            this.CboCanTruTu.Location = point;
            this.CboCanTruTu.Name = "CboCanTruTu";
            size = new Size(0x10f, 0x15);
            this.CboCanTruTu.Size = size;
            this.CboCanTruTu.TabIndex = 2;
            point = new Point(0x6d, 0x8f);
            this.TxtDienGiaiViet.Location = point;
            this.TxtDienGiaiViet.Name = "TxtDienGiaiViet";
            size = new Size(0x10f, 20);
            this.TxtDienGiaiViet.Size = size;
            this.TxtDienGiaiViet.TabIndex = 0x10;
            this.Label5.AutoEllipsis = true;
            this.Label5.AutoSize = true;
            point = new Point(0x12, 0x29);
            this.Label5.Location = point;
            this.Label5.Name = "Label5";
            this.Label5.RightToLeft = RightToLeft.No;
            size = new Size(0x35, 13);
            this.Label5.Size = size;
            this.Label5.TabIndex = 0x5f;
            this.Label5.Text = "Cấn trừ từ";
            this.Label5.TextAlign = ContentAlignment.TopRight;
            this.Label12.AutoEllipsis = true;
            this.Label12.AutoSize = true;
            point = new Point(0x12, 0x93);
            this.Label12.Location = point;
            this.Label12.Name = "Label12";
            this.Label12.RightToLeft = RightToLeft.No;
            size = new Size(0x45, 13);
            this.Label12.Size = size;
            this.Label12.TabIndex = 0x5f;
            this.Label12.Text = "Diễn giải Việt";
            this.Label12.TextAlign = ContentAlignment.TopRight;
            this.TxtGiaoDichConLai.BorderStyle = BorderStyle.FixedSingle;
            this.TxtGiaoDichConLai.DataType = typeof(double);
            this.TxtGiaoDichConLai.FormatType = FormatTypeEnum.Currency;
            point = new Point(0x214, 0x75);
            this.TxtGiaoDichConLai.Location = point;
            this.TxtGiaoDichConLai.Name = "TxtGiaoDichConLai";
            padding = new Padding(1);
            this.TxtGiaoDichConLai.Padding = padding;
            this.TxtGiaoDichConLai.RightToLeft = RightToLeft.No;
            size = new Size(0x74, 20);
            this.TxtGiaoDichConLai.Size = size;
            this.TxtGiaoDichConLai.TabIndex = 14;
            this.TxtGiaoDichConLai.Tag = null;
            this.TxtGiaoDichConLai.TextAlign = HorizontalAlignment.Right;
            this.TxtGiaoDichConLai.VisibleButtons = DropDownControlButtonFlags.DropDown;
            this.TxtGiaoDichConLai.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtGiaoDichConLai.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtGiaoDichGhiSo.BorderStyle = BorderStyle.FixedSingle;
            this.TxtGiaoDichGhiSo.DataType = typeof(double);
            this.TxtGiaoDichGhiSo.FormatType = FormatTypeEnum.Currency;
            point = new Point(0x2df, 0x76);
            this.TxtGiaoDichGhiSo.Location = point;
            this.TxtGiaoDichGhiSo.Name = "TxtGiaoDichGhiSo";
            padding = new Padding(1);
            this.TxtGiaoDichGhiSo.Padding = padding;
            this.TxtGiaoDichGhiSo.RightToLeft = RightToLeft.No;
            size = new Size(0x6d, 20);
            this.TxtGiaoDichGhiSo.Size = size;
            this.TxtGiaoDichGhiSo.TabIndex = 15;
            this.TxtGiaoDichGhiSo.Tag = null;
            this.TxtGiaoDichGhiSo.TextAlign = HorizontalAlignment.Right;
            this.TxtGiaoDichGhiSo.VisibleButtons = DropDownControlButtonFlags.DropDown;
            this.TxtGiaoDichGhiSo.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtGiaoDichGhiSo.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtTyGia.BorderStyle = BorderStyle.FixedSingle;
            this.TxtTyGia.DataType = typeof(double);
            this.TxtTyGia.FormatType = FormatTypeEnum.Currency;
            point = new Point(0x2df, 90);
            this.TxtTyGia.Location = point;
            this.TxtTyGia.Name = "TxtTyGia";
            padding = new Padding(1);
            this.TxtTyGia.Padding = padding;
            this.TxtTyGia.RightToLeft = RightToLeft.No;
            size = new Size(0x6f, 20);
            this.TxtTyGia.Size = size;
            this.TxtTyGia.TabIndex = 11;
            this.TxtTyGia.Tag = null;
            this.TxtTyGia.TextAlign = HorizontalAlignment.Right;
            this.TxtTyGia.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtTyGia.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtTyGia.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.Label18.AutoSize = true;
            point = new Point(0x28e, 120);
            this.Label18.Location = point;
            this.Label18.Name = "Label18";
            size = new Size(0x53, 13);
            this.Label18.Size = size;
            this.Label18.TabIndex = 0x38;
            this.Label18.Text = "Giao dịch ghi sổ";
            this.Label18.TextAlign = ContentAlignment.TopRight;
            this.TxtTienGiaoDich.BorderStyle = BorderStyle.FixedSingle;
            this.TxtTienGiaoDich.DataType = typeof(double);
            this.TxtTienGiaoDich.FormatType = FormatTypeEnum.Currency;
            point = new Point(0x6d, 0x75);
            this.TxtTienGiaoDich.Location = point;
            this.TxtTienGiaoDich.Name = "TxtTienGiaoDich";
            padding = new Padding(1);
            this.TxtTienGiaoDich.Padding = padding;
            this.TxtTienGiaoDich.RightToLeft = RightToLeft.No;
            size = new Size(0x74, 20);
            this.TxtTienGiaoDich.Size = size;
            this.TxtTienGiaoDich.TabIndex = 12;
            this.TxtTienGiaoDich.Tag = null;
            this.TxtTienGiaoDich.TextAlign = HorizontalAlignment.Right;
            this.TxtTienGiaoDich.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtTienGiaoDich.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtTienGiaoDich.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.Label16.AutoSize = true;
            point = new Point(0x28e, 0x5f);
            this.Label16.Location = point;
            this.Label16.Name = "Label16";
            size = new Size(0x24, 13);
            this.Label16.Size = size;
            this.Label16.TabIndex = 0x38;
            this.Label16.Text = "Tỷ gi\x00e1";
            this.Label16.TextAlign = ContentAlignment.TopRight;
            this.Label17.AutoSize = true;
            point = new Point(0x1b9, 0x77);
            this.Label17.Location = point;
            this.Label17.Name = "Label17";
            size = new Size(0x56, 13);
            this.Label17.Size = size;
            this.Label17.TabIndex = 0x38;
            this.Label17.Text = "Giao dịch c\x00f2n lại";
            this.Label17.TextAlign = ContentAlignment.TopRight;
            this.TxtTienGhiSo.BorderStyle = BorderStyle.FixedSingle;
            this.TxtTienGhiSo.DataType = typeof(double);
            this.TxtTienGhiSo.FormatType = FormatTypeEnum.Currency;
            point = new Point(0x117, 0x75);
            this.TxtTienGhiSo.Location = point;
            this.TxtTienGhiSo.Name = "TxtTienGhiSo";
            padding = new Padding(1);
            this.TxtTienGhiSo.Padding = padding;
            this.TxtTienGhiSo.RightToLeft = RightToLeft.No;
            size = new Size(0x65, 20);
            this.TxtTienGhiSo.Size = size;
            this.TxtTienGhiSo.TabIndex = 13;
            this.TxtTienGhiSo.Tag = null;
            this.TxtTienGhiSo.TextAlign = HorizontalAlignment.Right;
            this.TxtTienGhiSo.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtTienGhiSo.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtTienGhiSo.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.Label15.AutoSize = true;
            point = new Point(0x1b9, 0x60);
            this.Label15.Location = point;
            this.Label15.Name = "Label15";
            size = new Size(0x2f, 13);
            this.Label15.Size = size;
            this.Label15.TabIndex = 0x38;
            this.Label15.Text = "Loại tiền";
            this.Label15.TextAlign = ContentAlignment.TopRight;
            this.Label8.AutoSize = true;
            point = new Point(0xe7, 0x7a);
            this.Label8.Location = point;
            this.Label8.Name = "Label8";
            size = new Size(0x25, 13);
            this.Label8.Size = size;
            this.Label8.TabIndex = 0x38;
            this.Label8.Text = "Ghi sổ";
            this.Label8.TextAlign = ContentAlignment.TopRight;
            this.Label7.AutoSize = true;
            point = new Point(0x12, 0x79);
            this.Label7.Location = point;
            this.Label7.Name = "Label7";
            size = new Size(0x34, 13);
            this.Label7.Size = size;
            this.Label7.TabIndex = 0x38;
            this.Label7.Text = "Giao dịch";
            this.Label7.TextAlign = ContentAlignment.TopRight;
            this.Label11.AutoSize = true;
            point = new Point(440, 40);
            this.Label11.Location = point;
            this.Label11.Name = "Label11";
            size = new Size(0x56, 13);
            this.Label11.Size = size;
            this.Label11.TabIndex = 0x39;
            this.Label11.Text = "Chứng từ cấn trừ";
            this.Label11.TextAlign = ContentAlignment.TopRight;
            this.Label10.AutoSize = true;
            point = new Point(440, 0x45);
            this.Label10.Location = point;
            this.Label10.Name = "Label10";
            size = new Size(0x35, 13);
            this.Label10.Size = size;
            this.Label10.TabIndex = 0x25;
            this.Label10.Text = "Đối tượng";
            this.Label2.AutoSize = true;
            point = new Point(440, 12);
            this.Label2.Location = point;
            this.Label2.Name = "Label2";
            size = new Size(0x48, 13);
            this.Label2.Size = size;
            this.Label2.TabIndex = 0x25;
            this.Label2.Text = "T\x00e0i khoản Nợ";
            this.AdvTaiKhoanNo.Conditions = "";
            this.AdvTaiKhoanNo.DefaultValue = "";
            this.AdvTaiKhoanNo.FieldNameFilter = "Left(SoTaiKhoan,3)";
            this.AdvTaiKhoanNo.KeyFilter = "111";
            point = new Point(0x214, 9);
            this.AdvTaiKhoanNo.Location = point;
            padding = new Padding(0);
            this.AdvTaiKhoanNo.Margin = padding;
            this.AdvTaiKhoanNo.Name = "AdvTaiKhoanNo";
            this.AdvTaiKhoanNo.OnlyDigit = false;
            this.AdvTaiKhoanNo.ReadOnly = false;
            size = new Size(0x13a, 20);
            this.AdvTaiKhoanNo.Size = size;
            this.AdvTaiKhoanNo.TabIndex = 4;
            this.AdvTaiKhoanNo.UpperText = true;
            this.AdvTaiKhoanNo.Value = "";
            this.AdvTaiKhoanNo.WithCode = 80;
            this.Label13.AutoSize = true;
            point = new Point(0xe7, 14);
            this.Label13.Location = point;
            this.Label13.Name = "Label13";
            size = new Size(0x20, 13);
            this.Label13.Size = size;
            this.Label13.TabIndex = 0x23;
            this.Label13.Text = "Ng\x00e0y";
            this.TxtNgayChungTu.Format = DateTimePickerFormat.Short;
            point = new Point(0x117, 11);
            this.TxtNgayChungTu.Location = point;
            this.TxtNgayChungTu.Name = "TxtNgayChungTu";
            size = new Size(0x65, 20);
            this.TxtNgayChungTu.Size = size;
            this.TxtNgayChungTu.TabIndex = 1;
            this.Label1.AutoSize = true;
            point = new Point(0x12, 13);
            this.Label1.Location = point;
            this.Label1.Name = "Label1";
            size = new Size(0x41, 13);
            this.Label1.Size = size;
            this.Label1.TabIndex = 0x21;
            this.Label1.Text = "Số chứng từ";
            this.TxtChungTuCanTru.CharacterCasing = CharacterCasing.Upper;
            point = new Point(0x214, 0x23);
            this.TxtChungTuCanTru.Location = point;
            this.TxtChungTuCanTru.Name = "TxtChungTuCanTru";
            this.TxtChungTuCanTru.ReadOnly = true;
            size = new Size(0x6a, 20);
            this.TxtChungTuCanTru.Size = size;
            this.TxtChungTuCanTru.TabIndex = 10;
            this.TxtLoaiTien.CharacterCasing = CharacterCasing.Upper;
            point = new Point(0x214, 90);
            this.TxtLoaiTien.Location = point;
            this.TxtLoaiTien.Name = "TxtLoaiTien";
            size = new Size(0x74, 20);
            this.TxtLoaiTien.Size = size;
            this.TxtLoaiTien.TabIndex = 10;
            this.TxtSoChungTu.CharacterCasing = CharacterCasing.Upper;
            point = new Point(0x6d, 11);
            this.TxtSoChungTu.Location = point;
            this.TxtSoChungTu.Name = "TxtSoChungTu";
            size = new Size(0x74, 20);
            this.TxtSoChungTu.Size = size;
            this.TxtSoChungTu.TabIndex = 0;
            this.Panel1.Controls.Add(this.TxtSoTienGhiSoConLai);
            this.Panel1.Controls.Add(this.TxtCongTienPhaiCanTru);
            this.Panel1.Controls.Add(this.TxtSoDuTienGiaoDich);
            this.Panel1.Controls.Add(this.TxtSoDuTienGhiSo);
            this.Panel1.Controls.Add(this.TxtCongTienCanTru);
            this.Panel1.Controls.Add(this.TxtSoTienConLai);
            this.Panel1.Controls.Add(this.TxtChenhLechTyGia);
            this.Panel1.Controls.Add(this.Label19);
            this.Panel1.Controls.Add(this.Label20);
            this.Panel1.Controls.Add(this.Label21);
            this.Panel1.Controls.Add(this.Label22);
            this.Panel1.Controls.Add(this.Label23);
            this.Panel1.Controls.Add(this.Label24);
            this.Panel1.Controls.Add(this.Label25);
            this.Panel1.Dock = DockStyle.Bottom;
            point = new Point(0, 0x236);
            this.Panel1.Location = point;
            this.Panel1.Name = "Panel1";
            size = new Size(0x37c, 0x72);
            this.Panel1.Size = size;
            this.Panel1.TabIndex = 3;
            this.TxtSoTienGhiSoConLai.BorderStyle = BorderStyle.FixedSingle;
            this.TxtSoTienGhiSoConLai.DataType = typeof(double);
            this.TxtSoTienGhiSoConLai.FormatType = FormatTypeEnum.Currency;
            point = new Point(0x2f4, 6);
            this.TxtSoTienGhiSoConLai.Location = point;
            this.TxtSoTienGhiSoConLai.Name = "TxtSoTienGhiSoConLai";
            padding = new Padding(1);
            this.TxtSoTienGhiSoConLai.Padding = padding;
            this.TxtSoTienGhiSoConLai.ReadOnly = true;
            this.TxtSoTienGhiSoConLai.RightToLeft = RightToLeft.No;
            size = new Size(0x81, 20);
            this.TxtSoTienGhiSoConLai.Size = size;
            this.TxtSoTienGhiSoConLai.TabIndex = 4;
            this.TxtSoTienGhiSoConLai.Tag = null;
            this.TxtSoTienGhiSoConLai.TextAlign = HorizontalAlignment.Right;
            this.TxtSoTienGhiSoConLai.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtSoTienGhiSoConLai.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtSoTienGhiSoConLai.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtCongTienPhaiCanTru.BorderStyle = BorderStyle.FixedSingle;
            this.TxtCongTienPhaiCanTru.DataType = typeof(double);
            this.TxtCongTienPhaiCanTru.FormatType = FormatTypeEnum.Currency;
            point = new Point(0x1eb, 6);
            this.TxtCongTienPhaiCanTru.Location = point;
            this.TxtCongTienPhaiCanTru.Name = "TxtCongTienPhaiCanTru";
            padding = new Padding(1);
            this.TxtCongTienPhaiCanTru.Padding = padding;
            this.TxtCongTienPhaiCanTru.ReadOnly = true;
            this.TxtCongTienPhaiCanTru.RightToLeft = RightToLeft.No;
            size = new Size(0x8f, 20);
            this.TxtCongTienPhaiCanTru.Size = size;
            this.TxtCongTienPhaiCanTru.TabIndex = 0;
            this.TxtCongTienPhaiCanTru.Tag = null;
            this.TxtCongTienPhaiCanTru.TextAlign = HorizontalAlignment.Right;
            this.TxtCongTienPhaiCanTru.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtCongTienPhaiCanTru.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtCongTienPhaiCanTru.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtSoDuTienGiaoDich.BorderStyle = BorderStyle.FixedSingle;
            this.TxtSoDuTienGiaoDich.DataType = typeof(double);
            this.TxtSoDuTienGiaoDich.FormatType = FormatTypeEnum.Currency;
            point = new Point(0x2f4, 0x20);
            this.TxtSoDuTienGiaoDich.Location = point;
            this.TxtSoDuTienGiaoDich.Name = "TxtSoDuTienGiaoDich";
            padding = new Padding(1);
            this.TxtSoDuTienGiaoDich.Padding = padding;
            this.TxtSoDuTienGiaoDich.ReadOnly = true;
            this.TxtSoDuTienGiaoDich.RightToLeft = RightToLeft.No;
            size = new Size(0x81, 20);
            this.TxtSoDuTienGiaoDich.Size = size;
            this.TxtSoDuTienGiaoDich.TabIndex = 5;
            this.TxtSoDuTienGiaoDich.Tag = null;
            this.TxtSoDuTienGiaoDich.TextAlign = HorizontalAlignment.Right;
            this.TxtSoDuTienGiaoDich.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtSoDuTienGiaoDich.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtSoDuTienGiaoDich.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtSoDuTienGhiSo.BorderStyle = BorderStyle.FixedSingle;
            this.TxtSoDuTienGhiSo.DataType = typeof(double);
            this.TxtSoDuTienGhiSo.FormatType = FormatTypeEnum.Currency;
            point = new Point(0x2f4, 0x3a);
            this.TxtSoDuTienGhiSo.Location = point;
            this.TxtSoDuTienGhiSo.Name = "TxtSoDuTienGhiSo";
            padding = new Padding(1);
            this.TxtSoDuTienGhiSo.Padding = padding;
            this.TxtSoDuTienGhiSo.ReadOnly = true;
            this.TxtSoDuTienGhiSo.RightToLeft = RightToLeft.No;
            size = new Size(0x81, 20);
            this.TxtSoDuTienGhiSo.Size = size;
            this.TxtSoDuTienGhiSo.TabIndex = 6;
            this.TxtSoDuTienGhiSo.Tag = null;
            this.TxtSoDuTienGhiSo.TextAlign = HorizontalAlignment.Right;
            this.TxtSoDuTienGhiSo.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtSoDuTienGhiSo.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtSoDuTienGhiSo.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtCongTienCanTru.BorderStyle = BorderStyle.FixedSingle;
            this.TxtCongTienCanTru.DataType = typeof(double);
            this.TxtCongTienCanTru.FormatType = FormatTypeEnum.Currency;
            point = new Point(0x1eb, 0x20);
            this.TxtCongTienCanTru.Location = point;
            this.TxtCongTienCanTru.Name = "TxtCongTienCanTru";
            padding = new Padding(1);
            this.TxtCongTienCanTru.Padding = padding;
            this.TxtCongTienCanTru.ReadOnly = true;
            this.TxtCongTienCanTru.RightToLeft = RightToLeft.No;
            size = new Size(0x8f, 20);
            this.TxtCongTienCanTru.Size = size;
            this.TxtCongTienCanTru.TabIndex = 1;
            this.TxtCongTienCanTru.Tag = null;
            this.TxtCongTienCanTru.TextAlign = HorizontalAlignment.Right;
            this.TxtCongTienCanTru.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtCongTienCanTru.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtCongTienCanTru.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtSoTienConLai.BorderStyle = BorderStyle.FixedSingle;
            this.TxtSoTienConLai.DataType = typeof(double);
            this.TxtSoTienConLai.FormatType = FormatTypeEnum.Currency;
            point = new Point(0x1eb, 0x3a);
            this.TxtSoTienConLai.Location = point;
            this.TxtSoTienConLai.Name = "TxtSoTienConLai";
            padding = new Padding(1);
            this.TxtSoTienConLai.Padding = padding;
            this.TxtSoTienConLai.ReadOnly = true;
            this.TxtSoTienConLai.RightToLeft = RightToLeft.No;
            size = new Size(0x8f, 20);
            this.TxtSoTienConLai.Size = size;
            this.TxtSoTienConLai.TabIndex = 2;
            this.TxtSoTienConLai.Tag = null;
            this.TxtSoTienConLai.TextAlign = HorizontalAlignment.Right;
            this.TxtSoTienConLai.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtSoTienConLai.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtSoTienConLai.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtChenhLechTyGia.BorderStyle = BorderStyle.FixedSingle;
            this.TxtChenhLechTyGia.DataType = typeof(double);
            this.TxtChenhLechTyGia.FormatType = FormatTypeEnum.Currency;
            point = new Point(0x1eb, 0x54);
            this.TxtChenhLechTyGia.Location = point;
            this.TxtChenhLechTyGia.Name = "TxtChenhLechTyGia";
            padding = new Padding(1);
            this.TxtChenhLechTyGia.Padding = padding;
            this.TxtChenhLechTyGia.ReadOnly = true;
            this.TxtChenhLechTyGia.RightToLeft = RightToLeft.No;
            size = new Size(0x8f, 20);
            this.TxtChenhLechTyGia.Size = size;
            this.TxtChenhLechTyGia.TabIndex = 3;
            this.TxtChenhLechTyGia.Tag = null;
            this.TxtChenhLechTyGia.TextAlign = HorizontalAlignment.Right;
            this.TxtChenhLechTyGia.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtChenhLechTyGia.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtChenhLechTyGia.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.Label19.AutoSize = true;
            point = new Point(0x18b, 0x54);
            this.Label19.Location = point;
            this.Label19.Name = "Label19";
            size = new Size(0x59, 13);
            this.Label19.Size = size;
            this.Label19.TabIndex = 0;
            this.Label19.Text = "Ch\x00eanh lệch tỷ gi\x00e1";
            this.Label20.AutoSize = true;
            point = new Point(0x180, 0x3d);
            this.Label20.Location = point;
            this.Label20.Name = "Label20";
            size = new Size(100, 13);
            this.Label20.Size = size;
            this.Label20.TabIndex = 0;
            this.Label20.Text = "Cộng số tiền c\x00f2n lại";
            this.Label21.AutoSize = true;
            point = new Point(0x17e, 0x22);
            this.Label21.Location = point;
            this.Label21.Name = "Label21";
            size = new Size(0x66, 13);
            this.Label21.Size = size;
            this.Label21.TabIndex = 0;
            this.Label21.Text = "Cộng số tiền cấn trừ";
            this.Label22.AutoSize = true;
            point = new Point(0x299, 0x3d);
            this.Label22.Location = point;
            this.Label22.Name = "Label22";
            size = new Size(0x56, 13);
            this.Label22.Size = size;
            this.Label22.TabIndex = 0;
            this.Label22.Text = "Số dư tiền ghi sổ";
            this.Label23.AutoSize = true;
            point = new Point(650, 0x23);
            this.Label23.Location = point;
            this.Label23.Name = "Label23";
            size = new Size(0x65, 13);
            this.Label23.Size = size;
            this.Label23.TabIndex = 0;
            this.Label23.Text = "Số dư tiền giao dịch";
            this.Label24.AutoSize = true;
            point = new Point(0x286, 9);
            this.Label24.Location = point;
            this.Label24.Name = "Label24";
            size = new Size(0x69, 13);
            this.Label24.Size = size;
            this.Label24.TabIndex = 0;
            this.Label24.Text = "Số tiền ghi sổ c\x00f2n lại";
            this.Label25.AutoSize = true;
            point = new Point(0x167, 9);
            this.Label25.Location = point;
            this.Label25.Name = "Label25";
            size = new Size(0x7d, 13);
            this.Label25.Size = size;
            this.Label25.TabIndex = 0;
            this.Label25.Text = "Cộng số tiền phải cấn trừ";
            this.TabPage2.Controls.Add(this.Panel4);
            this.TabPage2.Controls.Add(this.Panel3);
            point = new Point(4, 0x16);
            this.TabPage2.Location = point;
            this.TabPage2.Name = "TabPage2";
            padding = new Padding(3);
            this.TabPage2.Padding = padding;
            size = new Size(0x374, 0x13b);
            this.TabPage2.Size = size;
            this.TabPage2.TabIndex = 0;
            this.TabPage2.Text = "Th\x00f4ng tin cấn trừ";
            this.TabPage2.UseVisualStyleBackColor = true;
            this.Panel4.Controls.Add(this.VSlist);
            this.Panel4.Dock = DockStyle.Fill;
            point = new Point(3, 3);
            this.Panel4.Location = point;
            this.Panel4.Name = "Panel4";
            size = new Size(0x36e, 0x10f);
            this.Panel4.Size = size;
            this.Panel4.TabIndex = 1;
            this.VSlist.BorderStyle = C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.Light3D;
            this.VSlist.ColumnInfo = manager.GetString("VSlist.ColumnInfo");
            this.VSlist.Dock = DockStyle.Fill;
            this.VSlist.ExtendLastCol = true;
            this.VSlist.FocusRect = FocusRectEnum.Solid;
            this.VSlist.KeyActionEnter = KeyActionEnum.MoveAcross;
            point = new Point(0, 0);
            this.VSlist.Location = point;
            padding = new Padding(0);
            this.VSlist.Margin = padding;
            this.VSlist.Name = "VSlist";
            this.VSlist.Rows.Count = 2;
            this.VSlist.Rows.DefaultSize = 0x11;
            this.VSlist.Rows.Fixed = 2;
            this.VSlist.Rows.MinSize = 20;
            size = new Size(0x36e, 0x10f);
            this.VSlist.Size = size;
            this.VSlist.StyleInfo = manager.GetString("VSlist.StyleInfo");
            this.VSlist.TabIndex = 0;
            this.VSlist.VisualStyle = C1.Win.C1FlexGrid.VisualStyle.Office2007Blue;
            this.Panel3.Controls.Add(this.CmdXoaDongChiTiet);
            this.Panel3.Controls.Add(this.CmdThemDongChiTiet);
            this.Panel3.Dock = DockStyle.Bottom;
            point = new Point(3, 0x112);
            this.Panel3.Location = point;
            this.Panel3.Name = "Panel3";
            size = new Size(0x36e, 0x26);
            this.Panel3.Size = size;
            this.Panel3.TabIndex = 0;
            this.CmdXoaDongChiTiet.Image = ACCOUNTING.My.Resources.Resources.Closed;
            this.CmdXoaDongChiTiet.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(0x68, 5);
            this.CmdXoaDongChiTiet.Location = point;
            this.CmdXoaDongChiTiet.Name = "CmdXoaDongChiTiet";
            size = new Size(0x5f, 0x19);
            this.CmdXoaDongChiTiet.Size = size;
            this.CmdXoaDongChiTiet.TabIndex = 0;
            this.CmdXoaDongChiTiet.Text = "X\x00f3a d\x00f2ng";
            this.CmdXoaDongChiTiet.UseVisualStyleBackColor = true;
            this.CmdThemDongChiTiet.Image = ACCOUNTING.My.Resources.Resources.Selected;
            this.CmdThemDongChiTiet.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(5, 5);
            this.CmdThemDongChiTiet.Location = point;
            this.CmdThemDongChiTiet.Name = "CmdThemDongChiTiet";
            size = new Size(0x60, 0x1a);
            this.CmdThemDongChiTiet.Size = size;
            this.CmdThemDongChiTiet.TabIndex = 1;
            this.CmdThemDongChiTiet.Text = "Th\x00eam d\x00f2ng";
            this.CmdThemDongChiTiet.UseVisualStyleBackColor = true;
            this.TabControl2.Controls.Add(this.TabPage2);
            this.TabControl2.Dock = DockStyle.Fill;
            point = new Point(0, 0xe1);
            this.TabControl2.Location = point;
            this.TabControl2.Name = "TabControl2";
            this.TabControl2.SelectedIndex = 0;
            size = new Size(0x37c, 0x155);
            this.TabControl2.Size = size;
            this.TabControl2.TabIndex = 4;
            SizeF ef = new SizeF(6f, 13f);
            this.AutoScaleDimensions = ef;
            this.AutoScaleMode = AutoScaleMode.Font;
            size = new Size(0x37c, 680);
            this.ClientSize = size;
            this.ControlBox = false;
            this.Controls.Add(this.TabControl2);
            this.Controls.Add(this.Panel1);
            this.Controls.Add(this.TabControl1);
            this.Controls.Add(this.ToolStrip1);
            this.KeyPreview = true;
            this.Name = "Frm_Matching";
            this.StartPosition = FormStartPosition.CenterScreen;
            this.Text = "CAN TRU CONG NO";
            this.ToolStrip1.ResumeLayout(false);
            this.ToolStrip1.PerformLayout();
            this.TabControl1.ResumeLayout(false);
            this.TabPage1.ResumeLayout(false);
            this.TabPage1.PerformLayout();
            ((ISupportInitialize) this.TxtGiaoDichConLai).EndInit();
            ((ISupportInitialize) this.TxtGiaoDichGhiSo).EndInit();
            ((ISupportInitialize) this.TxtTyGia).EndInit();
            ((ISupportInitialize) this.TxtTienGiaoDich).EndInit();
            ((ISupportInitialize) this.TxtTienGhiSo).EndInit();
            this.Panel1.ResumeLayout(false);
            this.Panel1.PerformLayout();
            ((ISupportInitialize) this.TxtSoTienGhiSoConLai).EndInit();
            ((ISupportInitialize) this.TxtCongTienPhaiCanTru).EndInit();
            ((ISupportInitialize) this.TxtSoDuTienGiaoDich).EndInit();
            ((ISupportInitialize) this.TxtSoDuTienGhiSo).EndInit();
            ((ISupportInitialize) this.TxtCongTienCanTru).EndInit();
            ((ISupportInitialize) this.TxtSoTienConLai).EndInit();
            ((ISupportInitialize) this.TxtChenhLechTyGia).EndInit();
            this.TabPage2.ResumeLayout(false);
            this.Panel4.ResumeLayout(false);
            this.VSlist.EndInit();
            this.Panel3.ResumeLayout(false);
            this.TabControl2.ResumeLayout(false);
            this.ResumeLayout(false);
            this.PerformLayout();
        }

        public void LoadCombobox(ComboBox ComboBox, DataTable DataTable, string DisplayMember, string ValueMember)
        {
            ComboBox.DataSource = DataTable;
            ComboBox.DisplayMember = DisplayMember;
            ComboBox.ValueMember = ValueMember;
        }

        public void LoadData_ChungTuMuaHang(clsGhiNhatKyChungTu chungtu)
        {
            try
            {
                this.TxtChungTuCanTru.Text = chungtu.SoChungTu;
                this.TxtChungTuCanTru.Tag = this.mKhoa;
                this.txtNgayCanTru.Value = Conversions.ToDate(LVYModule.Char2Date(chungtu.NgayChungTu));
                this.AdvDoiTuong.Value = chungtu.KhoaDoiTuongCo;
                this.TxtSoChungTuGoc.Text = chungtu.SoHoaDon;
                this.TxtNgayChungTuGoc.Text = LVYModule.Char2Date(chungtu.NgayHoaDon);
                this.TxtLoaiTien.Text = chungtu.LoaiTien;
                this.TxtTyGia.Value = chungtu.TyGia;
                this.TxtTienGiaoDich.Value = chungtu.SoPhatSinhNT;
                this.TxtTienGhiSo.Value = chungtu.SoPhatSinh;
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                ProjectData.ClearProjectError();
            }
        }

        public void LoadData_ChungTuTienThua(clsChungTuQuyChiTiet chungtu)
        {
            try
            {
                clsChungTuQuy quy = new clsChungTuQuy();
                quy.Load(chungtu.KhoaChungTu);
                this.TxtChungTuCanTru.Text = quy.SoChungTu;
                this.TxtChungTuCanTru.Tag = chungtu.Khoa;
                this.txtNgayCanTru.Value = Conversions.ToDate(LVYModule.Char2Date(quy.NgayChungTu));
                this.AdvDoiTuong.Value = chungtu.KhoaDoiTuong;
                this.TxtSoChungTuGoc.Text = chungtu.SoHoaDon;
                this.TxtNgayChungTuGoc.Text = LVYModule.Char2Date(chungtu.NgayHoaDon);
                this.TxtLoaiTien.Text = chungtu.LoaiTien;
                this.TxtTyGia.Value = chungtu.TyGia;
                this.TxtTienGiaoDich.Value = chungtu.SoTienNT;
                this.TxtTienGhiSo.Value = chungtu.SoTien;
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                ProjectData.ClearProjectError();
            }
        }

        public void LoadData_KhachHangTamUng(clsTamUngKhachHangChiTiet chungtu)
        {
            try
            {
                clsTamUngKhachHang hang = new clsTamUngKhachHang();
                hang.Load(chungtu.KhoaTamUng);
                this.TxtChungTuCanTru.Text = hang.SoChungTu;
                this.TxtChungTuCanTru.Tag = chungtu.Khoa;
                this.txtNgayCanTru.Value = Conversions.ToDate(LVYModule.Char2Date(hang.NgayChungTu));
                this.AdvDoiTuong.Value = chungtu.KhoaDoiTuongCo;
                this.TxtSoChungTuGoc.Text = chungtu.SoChungTu;
                this.TxtNgayChungTuGoc.Text = LVYModule.Char2Date(chungtu.NgayChungTu);
                this.TxtLoaiTien.Text = chungtu.KhoaLoaiTien;
                this.TxtTyGia.Value = chungtu.TyGia;
                this.TxtTienGiaoDich.Value = chungtu.SoTienThuc;
                this.TxtTienGhiSo.Value = chungtu.SoTienThucGhiSo;
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                ProjectData.ClearProjectError();
            }
        }

        public DataTable LoaiChungTuCanTru()
        {
            DataTable table2 = new DataTable();
            table2.Columns.Add("Loai", System.Type.GetType("System.String"));
            table2.Columns.Add("Ten", System.Type.GetType("System.String"));
            DataRow row = table2.NewRow();
            row["Loai"] = "";
            row["Ten"] = "";
            table2.Rows.Add(row);
            row = table2.NewRow();
            row["Loai"] = "A/P";
            row["Ten"] = "Chứng từ mua h\x00e0ng";
            table2.Rows.Add(row);
            row = table2.NewRow();
            row["Loai"] = "A/R(-)";
            row["Ten"] = "Chứng từ tiền thừa";
            table2.Rows.Add(row);
            row = table2.NewRow();
            row["Loai"] = "AC";
            row["Ten"] = "Kh\x00e1ch h\x00e0ng tạm ứng";
            table2.Rows.Add(row);
            return table2;
        }

        public DataTable LoaiKhachHang()
        {
            DataTable table2 = new DataTable();
            table2.Columns.Add("Loai", System.Type.GetType("System.String"));
            table2.Columns.Add("Ten", System.Type.GetType("System.String"));
            DataRow row = table2.NewRow();
            row["Loai"] = "";
            row["Ten"] = "";
            table2.Rows.Add(row);
            row = table2.NewRow();
            row["Loai"] = "TN";
            row["Ten"] = "Khach h\x00e0ng trong nước";
            table2.Rows.Add(row);
            row = table2.NewRow();
            row["Loai"] = "NN";
            row["Ten"] = "Kh\x00e1ch h\x00e0ng nước ngo\x00e0i";
            table2.Rows.Add(row);
            return table2;
        }

        public void MergCell()
        {
            this.VSlist.AllowMerging = AllowMergingEnum.FixedOnly;
            this.VSlist.Rows[0].AllowMerging = true;
        }

        private void VSlist_AfterEdit(object sender, RowColEventArgs e)
        {
        }

        private void VSlist_CellButtonClick(object sender, RowColEventArgs e)
        {
            object obj2;
            string pKhoa = "";
            switch (e.Col)
            {
                case 1:
                    obj2 = LVYModule.ShowMultiDropDownBySource(this.VSlist, e.Row, e.Col, this.LoaiChungTuCanTru(), 10, 0, Conversions.ToString(1), "");
                    if (obj2 == null)
                    {
                        break;
                    }
                    if (NewLateBinding.LateIndexGet(obj2, new object[] { 0 }, null).ToString().Trim() != "")
                    {
                        this.VSlist[e.Row, 1] = RuntimeHelpers.GetObjectValue(NewLateBinding.LateIndexGet(obj2, new object[] { 1 }, null));
                        break;
                    }
                    return;

                case 2:
                    obj2 = LVYModule.ShowMultiDropDownBySource(this.VSlist, e.Row, e.Col, this.LoaiKhachHang(), 10, 0, Conversions.ToString(1), "");
                    if (obj2 == null)
                    {
                        goto Label_019E;
                    }
                    if (NewLateBinding.LateIndexGet(obj2, new object[] { 0 }, null).ToString().Trim() != "")
                    {
                        this.VSlist[e.Row, 2] = RuntimeHelpers.GetObjectValue(NewLateBinding.LateIndexGet(obj2, new object[] { 1 }, null));
                        goto Label_019E;
                    }
                    return;

                case 3:
                    return;

                case 4:
                    if (!Microsoft.VisualBasic.CompilerServices.Operators.ConditionalCompareObjectEqual(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[e.Row, 1]), "", modGeneral.TypeOfValue.Nothing), "Chứng từ mua h\x00e0ng", false))
                    {
                        if (Microsoft.VisualBasic.CompilerServices.Operators.ConditionalCompareObjectEqual(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[e.Row, 1]), "", modGeneral.TypeOfValue.Nothing), "Chứng từ tiền thừa", false))
                        {
                            if (Microsoft.VisualBasic.CompilerServices.Operators.ConditionalCompareObjectEqual(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[e.Row, 2]), "", modGeneral.TypeOfValue.Nothing), "Khach h\x00e0ng trong nước", false) && (SearchModule.SearchPhieuThuTienThua(true) == ""))
                            {
                            }
                            if (Microsoft.VisualBasic.CompilerServices.Operators.ConditionalCompareObjectEqual(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[e.Row, 2]), "", modGeneral.TypeOfValue.Nothing), "Kh\x00e1ch h\x00e0ng nước ngo\x00e0i", false) && (SearchModule.SearchChungTuMuaHang(false) == ""))
                            {
                            }
                        }
                        else if (Microsoft.VisualBasic.CompilerServices.Operators.ConditionalCompareObjectEqual(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[e.Row, 1]), "", modGeneral.TypeOfValue.Nothing), "Kh\x00e1ch h\x00e0ng tạm ứng", false))
                        {
                            if (Microsoft.VisualBasic.CompilerServices.Operators.ConditionalCompareObjectEqual(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[e.Row, 2]), "", modGeneral.TypeOfValue.Nothing), "Khach h\x00e0ng trong nước", false) && (SearchModule.SearchDanhSachKhachHangTamUng(true) == ""))
                            {
                            }
                            if (Microsoft.VisualBasic.CompilerServices.Operators.ConditionalCompareObjectEqual(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[e.Row, 2]), "", modGeneral.TypeOfValue.Nothing), "Kh\x00e1ch h\x00e0ng nước ngo\x00e0i", false) && (SearchModule.SearchDanhSachKhachHangTamUng(false) == ""))
                            {
                            }
                        }
                        return;
                    }
                    if (Microsoft.VisualBasic.CompilerServices.Operators.ConditionalCompareObjectEqual(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[e.Row, 2]), "", modGeneral.TypeOfValue.Nothing), "Khach h\x00e0ng trong nước", false))
                    {
                        pKhoa = SearchModule.SearchChungTuMuaHang(true);
                        if (pKhoa != "")
                        {
                            this.objSoTK.LoadByCode("3310");
                            clsGhiNhatKyChungTu tu = new clsGhiNhatKyChungTu();
                            tu.Load(pKhoa);
                            this.VSlist[e.Row, 3] = pKhoa;
                            this.VSlist[e.Row, 4] = tu.SoChungTu;
                            this.VSlist[e.Row, 5] = LVYModule.Char2Date(tu.NgayChungTu);
                            this.objDoiTuong.Load(tu.KhoaDoiTuongCo);
                            this.VSlist[e.Row, 6] = this.objDoiTuong.Ma;
                            this.VSlist[e.Row, 7] = this.objDoiTuong.TenViet;
                            this.VSlist[e.Row, 8] = this.objSoTK.Khoa;
                            this.VSlist[e.Row, 9] = this.objSoTK.SoTaiKhoan;
                            this.VSlist[e.Row, 10] = this.objSoTK.TenViet;
                            this.VSlist[e.Row, 11] = tu.LoaiTien;
                            this.VSlist[e.Row, 12] = tu.TyGia;
                            this.VSlist[e.Row, 13] = tu.SoPhatSinhNT;
                            this.VSlist[e.Row, 14] = tu.SoPhatSinh;
                        }
                    }
                    if (Microsoft.VisualBasic.CompilerServices.Operators.ConditionalCompareObjectEqual(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[e.Row, 2]), "", modGeneral.TypeOfValue.Nothing), "Kh\x00e1ch h\x00e0ng nước ngo\x00e0i", false) && (SearchModule.SearchChungTuMuaHang(false) == ""))
                    {
                    }
                    return;

                default:
                    return;
            }
            this.VSlist_AfterEdit(RuntimeHelpers.GetObjectValue(sender), e);
            return;
        Label_019E:
            this.VSlist_AfterEdit(RuntimeHelpers.GetObjectValue(sender), e);
        }

        internal virtual ADVObjects AdvDoiTuong
        {
            [DebuggerNonUserCode]
            get
            {
                return this._AdvDoiTuong;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._AdvDoiTuong = value;
            }
        }

        internal virtual ADVAccount AdvTaiKhoanNo
        {
            [DebuggerNonUserCode]
            get
            {
                return this._AdvTaiKhoanNo;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._AdvTaiKhoanNo = value;
            }
        }

        internal virtual ComboBox CboCanTruTu
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboCanTruTu;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CboCanTruTu = value;
            }
        }

        internal virtual ComboBox CboLoaiKhachHang
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboLoaiKhachHang;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CboLoaiKhachHang = value;
            }
        }

        internal virtual ToolStripButton CmdAdd
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdAdd;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdAdd_Click);
                if (this._CmdAdd != null)
                {
                    this._CmdAdd.Click -= handler;
                }
                this._CmdAdd = value;
                if (this._CmdAdd != null)
                {
                    this._CmdAdd.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdDel
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdDel;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CmdDel = value;
            }
        }

        internal virtual ToolStripButton CmdEdit
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdEdit;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CmdEdit = value;
            }
        }

        internal virtual ToolStripButton CmdExit
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdExit;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdExit_Click);
                if (this._CmdExit != null)
                {
                    this._CmdExit.Click -= handler;
                }
                this._CmdExit = value;
                if (this._CmdExit != null)
                {
                    this._CmdExit.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdFind
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdFind;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdFind_Click);
                if (this._CmdFind != null)
                {
                    this._CmdFind.Click -= handler;
                }
                this._CmdFind = value;
                if (this._CmdFind != null)
                {
                    this._CmdFind.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdHelp
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdHelp;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CmdHelp = value;
            }
        }

        internal virtual ToolStripSplitButton CmdPrint
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdPrint;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CmdPrint = value;
            }
        }

        internal virtual ToolStripButton CmdSave
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdSave;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CmdSave = value;
            }
        }

        internal virtual Button CmdThemDongChiTiet
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdThemDongChiTiet;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdThemDongChiTiet_Click);
                if (this._CmdThemDongChiTiet != null)
                {
                    this._CmdThemDongChiTiet.Click -= handler;
                }
                this._CmdThemDongChiTiet = value;
                if (this._CmdThemDongChiTiet != null)
                {
                    this._CmdThemDongChiTiet.Click += handler;
                }
            }
        }

        internal virtual Button cmdTimDonHang
        {
            [DebuggerNonUserCode]
            get
            {
                return this._cmdTimDonHang;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.cmdTimDonHang_Click);
                if (this._cmdTimDonHang != null)
                {
                    this._cmdTimDonHang.Click -= handler;
                }
                this._cmdTimDonHang = value;
                if (this._cmdTimDonHang != null)
                {
                    this._cmdTimDonHang.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdUnsave
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdUnsave;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdUnsave_Click);
                if (this._CmdUnsave != null)
                {
                    this._CmdUnsave.Click -= handler;
                }
                this._CmdUnsave = value;
                if (this._CmdUnsave != null)
                {
                    this._CmdUnsave.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdXemDinhKhoan
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdXemDinhKhoan;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CmdXemDinhKhoan = value;
            }
        }

        internal virtual Button CmdXoaDongChiTiet
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdXoaDongChiTiet;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdXoaDongChiTiet_Click);
                if (this._CmdXoaDongChiTiet != null)
                {
                    this._CmdXoaDongChiTiet.Click -= handler;
                }
                this._CmdXoaDongChiTiet = value;
                if (this._CmdXoaDongChiTiet != null)
                {
                    this._CmdXoaDongChiTiet.Click += handler;
                }
            }
        }

        public bool EnabledControl
        {
            get
            {
                return this.mEnabledControl;
            }
            set
            {
                this.mEnabledControl = value;
                this.CmdAdd.Enabled = !value;
                this.CmdEdit.Enabled = !value;
                this.CmdDel.Enabled = !value;
                this.CmdFind.Enabled = !value;
                this.CmdExit.Enabled = !value;
                this.CmdXemDinhKhoan.Enabled = value;
                this.CmdSave.Enabled = value;
                this.CmdUnsave.Enabled = value;
                this.TxtSoChungTu.Enabled = value;
                this.TxtNgayChungTu.Enabled = value;
                this.CboCanTruTu.Enabled = value;
                this.CboLoaiKhachHang.Enabled = value;
                this.TxtDienGiaiViet.Enabled = value;
                this.TxtDienGiaiKhac.Enabled = value;
                this.TxtGiaoDichConLai.Enabled = value;
                this.TxtGiaoDichGhiSo.Enabled = value;
                this.AdvTaiKhoanNo.Enabled = false;
                this.CmdThemDongChiTiet.Enabled = value;
                this.CmdXoaDongChiTiet.Enabled = value;
                this.txtNgayCanTru.Enabled = false;
                this.AdvDoiTuong.Enabled = false;
                this.TxtSoChungTuGoc.Enabled = false;
                this.TxtNgayChungTuGoc.Enabled = false;
                this.TxtLoaiTien.Enabled = false;
                this.TxtTyGia.Enabled = false;
                this.TxtTienGhiSo.Enabled = false;
                this.TxtTienGiaoDich.Enabled = false;
            }
        }

        internal virtual Label Label1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label1 = value;
            }
        }

        internal virtual Label Label10
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label10;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label10 = value;
            }
        }

        internal virtual Label Label11
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label11;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label11 = value;
            }
        }

        internal virtual Label Label12
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label12;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label12 = value;
            }
        }

        internal virtual Label Label13
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label13;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label13 = value;
            }
        }

        internal virtual Label Label14
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label14;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label14 = value;
            }
        }

        internal virtual Label Label15
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label15;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label15 = value;
            }
        }

        internal virtual Label Label16
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label16;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label16 = value;
            }
        }

        internal virtual Label Label17
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label17;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label17 = value;
            }
        }

        internal virtual Label Label18
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label18;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label18 = value;
            }
        }

        internal virtual Label Label19
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label19;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label19 = value;
            }
        }

        internal virtual Label Label2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label2 = value;
            }
        }

        internal virtual Label Label20
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label20;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label20 = value;
            }
        }

        internal virtual Label Label21
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label21;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label21 = value;
            }
        }

        internal virtual Label Label22
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label22;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label22 = value;
            }
        }

        internal virtual Label Label23
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label23;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label23 = value;
            }
        }

        internal virtual Label Label24
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label24;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label24 = value;
            }
        }

        internal virtual Label Label25
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label25;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label25 = value;
            }
        }

        internal virtual Label Label3
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label3;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label3 = value;
            }
        }

        internal virtual Label Label4
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label4;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label4 = value;
            }
        }

        internal virtual Label Label5
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label5;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label5 = value;
            }
        }

        internal virtual Label Label6
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label6;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label6 = value;
            }
        }

        internal virtual Label Label7
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label7;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label7 = value;
            }
        }

        internal virtual Label Label8
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label8;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label8 = value;
            }
        }

        internal virtual Label Label9
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label9;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label9 = value;
            }
        }

        internal virtual Panel Panel1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Panel1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Panel1 = value;
            }
        }

        internal virtual Panel Panel3
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Panel3;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Panel3 = value;
            }
        }

        internal virtual Panel Panel4
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Panel4;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Panel4 = value;
            }
        }

        internal virtual ToolStripMenuItem PrintCT
        {
            [DebuggerNonUserCode]
            get
            {
                return this._PrintCT;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._PrintCT = value;
            }
        }

        internal virtual ToolStripMenuItem PrintTH
        {
            [DebuggerNonUserCode]
            get
            {
                return this._PrintTH;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._PrintTH = value;
            }
        }

        internal virtual TabControl TabControl1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TabControl1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TabControl1 = value;
            }
        }

        internal virtual TabControl TabControl2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TabControl2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TabControl2 = value;
            }
        }

        internal virtual TabPage TabPage1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TabPage1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TabPage1 = value;
            }
        }

        internal virtual TabPage TabPage2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TabPage2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TabPage2 = value;
            }
        }

        internal virtual ToolStrip ToolStrip1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStrip1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStrip1 = value;
            }
        }

        internal virtual ToolStripSeparator ToolStripButton1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStripButton1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStripButton1 = value;
            }
        }

        internal virtual ToolStripSeparator ToolStripSeparator1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStripSeparator1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStripSeparator1 = value;
            }
        }

        internal virtual ToolStripSeparator ToolStripSeparator2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStripSeparator2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStripSeparator2 = value;
            }
        }

        internal virtual ToolStripSeparator ToolStripSeparator3
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStripSeparator3;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStripSeparator3 = value;
            }
        }

        internal virtual C1NumericEdit TxtChenhLechTyGia
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtChenhLechTyGia;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtChenhLechTyGia = value;
            }
        }

        internal virtual TextBox TxtChungTuCanTru
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtChungTuCanTru;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtChungTuCanTru = value;
            }
        }

        internal virtual C1NumericEdit TxtCongTienCanTru
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtCongTienCanTru;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtCongTienCanTru = value;
            }
        }

        internal virtual C1NumericEdit TxtCongTienPhaiCanTru
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtCongTienPhaiCanTru;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtCongTienPhaiCanTru = value;
            }
        }

        internal virtual TextBox TxtDienGiaiKhac
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtDienGiaiKhac;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtDienGiaiKhac = value;
            }
        }

        internal virtual TextBox TxtDienGiaiViet
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtDienGiaiViet;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtDienGiaiViet = value;
            }
        }

        internal virtual C1NumericEdit TxtGiaoDichConLai
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtGiaoDichConLai;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtGiaoDichConLai = value;
            }
        }

        internal virtual C1NumericEdit TxtGiaoDichGhiSo
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtGiaoDichGhiSo;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtGiaoDichGhiSo = value;
            }
        }

        internal virtual TextBox TxtKyHieu
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtKyHieu;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtKyHieu = value;
            }
        }

        internal virtual TextBox TxtLoaiTien
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtLoaiTien;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtLoaiTien = value;
            }
        }

        internal virtual DateTimePicker txtNgayCanTru
        {
            [DebuggerNonUserCode]
            get
            {
                return this._txtNgayCanTru;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._txtNgayCanTru = value;
            }
        }

        internal virtual DateTimePicker TxtNgayChungTu
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtNgayChungTu;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtNgayChungTu = value;
            }
        }

        internal virtual DateTimePicker TxtNgayChungTuGoc
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtNgayChungTuGoc;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtNgayChungTuGoc = value;
            }
        }

        internal virtual TextBox TxtSoChungTu
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtSoChungTu;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtSoChungTu = value;
            }
        }

        internal virtual TextBox TxtSoChungTuGoc
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtSoChungTuGoc;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtSoChungTuGoc = value;
            }
        }

        internal virtual C1NumericEdit TxtSoDuTienGhiSo
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtSoDuTienGhiSo;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtSoDuTienGhiSo = value;
            }
        }

        internal virtual C1NumericEdit TxtSoDuTienGiaoDich
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtSoDuTienGiaoDich;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtSoDuTienGiaoDich = value;
            }
        }

        internal virtual C1NumericEdit TxtSoTienConLai
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtSoTienConLai;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtSoTienConLai = value;
            }
        }

        internal virtual C1NumericEdit TxtSoTienGhiSoConLai
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtSoTienGhiSoConLai;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtSoTienGhiSoConLai = value;
            }
        }

        internal virtual C1NumericEdit TxtTienGhiSo
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTienGhiSo;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtTienGhiSo = value;
            }
        }

        internal virtual C1NumericEdit TxtTienGiaoDich
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTienGiaoDich;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtTienGiaoDich = value;
            }
        }

        internal virtual C1NumericEdit TxtTyGia
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTyGia;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtTyGia = value;
            }
        }

        internal virtual C1.Win.C1FlexGrid.C1FlexGrid VSlist
        {
            [DebuggerNonUserCode]
            get
            {
                return this._VSlist;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                RowColEventHandler handler = new RowColEventHandler(this.VSlist_CellButtonClick);
                RowColEventHandler handler2 = new RowColEventHandler(this.VSlist_AfterEdit);
                if (this._VSlist != null)
                {
                    this._VSlist.CellButtonClick -= handler;
                    this._VSlist.AfterEdit -= handler2;
                }
                this._VSlist = value;
                if (this._VSlist != null)
                {
                    this._VSlist.CellButtonClick += handler;
                    this._VSlist.AfterEdit += handler2;
                }
            }
        }
    }
}

